home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / ODF / AMSample / Sources / SOMPart.idl < prev    next >
Encoding:
Text File  |  1996-06-03  |  4.3 KB  |  177 lines  |  [TEXT/CWIE]

  1. #ifdef __PRIVATE__
  2. //#
  3. //#    File:        SOMPart.idl
  4. //#
  5. //#    Contains:    Interface for AMSample class
  6. //#
  7. //#    Copyright:    (C) 1993-1996 by Apple Computer, Inc., all rights reserved.
  8. //#
  9. #else
  10. //#    Copyright:    (C) 1993-1996 by Apple Computer, Inc., all rights reserved.
  11. #endif
  12.  
  13. #ifndef SOMPART_IDL
  14. #define SOMPART_IDL
  15.  
  16. #ifndef FWENVDEF_IDL
  17. #include "FWEnvDef.idl"
  18. #endif
  19.  
  20. #ifndef _PART_
  21. #include "Part.idl"
  22. #endif
  23.  
  24. //==============================================================================
  25. // Constants
  26. //==============================================================================
  27.  
  28. //==============================================================================
  29. // Classes defined in this interface
  30. //==============================================================================
  31.  
  32. //==============================================================================
  33. // Classes used by this interface
  34. //==============================================================================
  35.  
  36. interface  ODCanvas;
  37. interface  ODFacet;
  38. interface  ODFrame;
  39. interface  ODLink;
  40. interface  ODLinkSource;
  41. interface  ODShape;
  42. interface  ODStorageUnit;
  43. interface  ODStorageUnitView;
  44. interface  ODTransform;
  45. interface  ODDragItemIterator;
  46. interface  ODSession;
  47. interface  ODTypeList;
  48. interface  ODObjectSpec;
  49. interface  ODEmbeddedFramesIterator;
  50.  
  51. typedef somToken FW_CPart;
  52.  
  53. //==============================================================================
  54. // AMSample
  55. //==============================================================================
  56.  
  57. module BowersDev
  58. {
  59.     interface AMSample : ODPart
  60.     {
  61.         //-------------------------------------------------------------------------
  62.         // New protocol
  63.         //-------------------------------------------------------------------------
  64.         FW_CPart*     GetFrameworkPart();
  65.         FW_CPart*    NewFrameworkPart(in ODPart partWrapper);
  66.  
  67. #ifdef __SOMIDL__
  68.         implementation
  69.         {
  70.             functionprefix = AMSample;
  71.  
  72.             passthru C_xh =
  73.                 "class FW_CPart;";
  74.  
  75.             override:
  76.                 somInit,
  77.                 somUninit,        
  78.                 Release,
  79.                 ReleaseAll,
  80.                 Externalize,
  81.                   CloneInto,
  82.                  HasExtension,
  83.                 AcquireExtension,
  84.                 ReleaseExtension,
  85.                 Purge,        
  86.                 InitPart,
  87.                 InitPartFromStorage,
  88.                 DisplayFrameAdded,
  89.                 DisplayFrameRemoved,
  90.                 DisplayFrameConnected,
  91.                 DisplayFrameClosed,
  92.                    AttachSourceFrame,
  93.                 FrameShapeChanged,
  94.                 ViewTypeChanged,
  95.                 PresentationChanged,
  96.                 SequenceChanged,
  97.                 LinkStatusChanged,
  98.                 ContainingPartPropertiesUpdated,
  99.                 ReadPartInfo,
  100.                 WritePartInfo,
  101. #if FW_OPENDOC_VERSION >= FW_OPENDOC_DR2
  102.                 ClonePartInfo,
  103. #endif
  104.                 Open,
  105.                 Draw,
  106.                 FacetAdded,
  107.                 FacetRemoved,
  108.                 GeometryChanged,
  109.                 HighlightChanged,
  110.                 CanvasChanged,
  111.                 CanvasUpdated,
  112.                 GetPrintResolution,
  113.                 BeginRelinquishFocus,
  114.                 CommitRelinquishFocus,
  115.                 AbortRelinquishFocus,
  116.                 FocusAcquired,
  117.                 FocusLost,
  118.                 ExternalizeKinds,
  119.                 ChangeKind,
  120.                 HandleEvent,
  121.                 AdjustMenus,
  122.                 UndoAction,
  123.                 RedoAction,
  124.                 DisposeActionState,
  125.                 WriteActionState,
  126.                 ReadActionState,
  127.                 FulfillPromise,
  128.                 DropCompleted,
  129.                 DragEnter,
  130.                 DragWithin,
  131.                 DragLeave,
  132.                 Drop,
  133.                 CreateLink,
  134.                 RevealLink,
  135.                 LinkUpdated,
  136.                 EmbeddedFrameUpdated,
  137. #if FW_OPENDOC_VERSION >= FW_OPENDOC_DR2
  138.                 EditInLinkAttempted,
  139. #endif
  140.                 RequestEmbeddedFrame,
  141.                 RemoveEmbeddedFrame,
  142.                 RequestFrameShape,
  143.                 UsedShapeChanged,
  144.                 AdjustBorderShape,
  145.                 AcquireContainingPartProperties,
  146.                 RevealFrame,
  147.                 EmbeddedFrameSpec,
  148. #if FW_OPENDOC_VERSION < FW_OPENDOC_DR2
  149.                 MouseEnter,
  150.                 MouseWithin,
  151.                 MouseLeave,
  152.                 HandleEventInEmbedded,
  153. #endif
  154.                 CreateEmbeddedFramesIterator;
  155.  
  156.             releaseorder:
  157.                 GetFrameworkPart,
  158.                 NewFrameworkPart,
  159.  
  160.             majorversion = 1; minorversion = 0;
  161.  
  162.             //# Put all forward class declarations and #includes for types that
  163.             //# are private to the implementation. These ( probably ) are non-som objects that will
  164.             //# not be passed THRU some ever ( as I understand it ).
  165.             passthru C_xih = "class FW_CPart;";
  166.  
  167.             // instance variables
  168.             FW_CPart*    fFrameworkPart;
  169.         };
  170. #endif
  171.     };
  172.  
  173. };
  174.  
  175.  
  176. #endif
  177.